﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using googlemaps;
using ClientMobile.SSVService;

namespace ClientMobile
{
    public partial class Notifications : PhoneApplicationPage
    {
        public Notifications()
        {
            InitializeComponent();
            Singleton s = Singleton.Instance;
            Service1SoapClient ser = new Service1SoapClient();
            ser.AfficherListeNotiChauffeurCompleted += new EventHandler<AfficherListeNotiChauffeurCompletedEventArgs>(ser_AfficherListeNotiChauffeurCompleted);
            ser.AfficherListeNotiChauffeurAsync(s.Chauff.id_chauffeur);
        }

        void ser_AfficherListeNotiChauffeurCompleted(object sender, AfficherListeNotiChauffeurCompletedEventArgs e)
        {
            listBox1.DataContext = e.Result;
        }
    }
}